import request from '@/utils/request'

// 查询绿化区域列表
export function listBuiGreenArea(query) {
  return request({
    url: '/park/buiGreenArea/list',
    method: 'get',
    params: query
  })
}

// 查询绿化区域详细
export function getBuiGreenArea(id) {
  return request({
    url: '/park/buiGreenArea/' + id,
    method: 'get'
  })
}

// 新增绿化区域
export function addBuiGreenArea(data) {
  return request({
    url: '/park/buiGreenArea',
    method: 'post',
    data: data
  })
}

// 修改绿化区域
export function updateBuiGreenArea(data) {
  return request({
    url: '/park/buiGreenArea',
    method: 'put',
    data: data
  })
}

// 删除绿化区域
export function delBuiGreenArea(id) {
  return request({
    url: '/park/buiGreenArea/' + id,
    method: 'delete'
  })
}
